package com.lcf.ploy;

public interface Compare {
   default  void compare(Apple a1,Apple a2 ){
       System.out.println("挑选较大的苹果");
       if(a1.getSize() > a2.getSize()){
           System.out.println(a1);
       }else{
           System.out.println(a2);
       }
   }
}
